package com.hzya.frame.web.aop;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;

/**
 * 测试AOP
 * @author Administrator
 *
 */
@Aspect
public class TestAop {
	//com/hzya/frame/system/dictionary/action/DictionaryPlatformAction
	//@Pointcut("execution(* com.hzya.frame..action.*.queryPaged*(..))")
	@Pointcut("execution(* com.hzya.frame..action.*.query*(..))")
	public void savePoint() {
		System.out.println("方法执行前执行.....");  

	};
	
	@Around("savePoint()")
	public Object runRound(ProceedingJoinPoint joinPoint) throws Throwable {
		System.out.println("");
		return null;
	}
}
